package com.typhoon.spring_jdbctemplate.consumer;

import com.typhoon.spring_jdbctemplate.entity.Task;
import com.typhoon.spring_jdbctemplate.service.TaskService;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class PageConsumer {

    public static void main(String[] args) {
        AbstractApplicationContext context = new ClassPathXmlApplicationContext("spring-root.xml");
        context.start();
//        TaskService taskService = context.getBean(TaskService.class);
//        Task task = new Task();
//        task.setStatus(2);
//        for(int i = 0;i < 100; i ++) {
//            taskService.insert(task);
//        }

    }
}
